<?php

require_once '../Controller/thongkeController.php';
$thongkeController = new thongkeController();

$action = "";

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $action = (isset($_POST['action']) != NULL) ? $_POST['action'] : '';
} else {
    $action = (isset($_GET['action']) != NULL) ? $_GET['action'] : '';
}

if ($action === "SHOWLISTTHONGKE") {
    $thongkeController->getListThongKe();
}
